package com.vortex.cloud.sample.easyexcel.nange.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-10-08 周五
 * @time 8:44
 * @description
 */
@Data
//@HeadRowHeight(30) //表头的行高
//@ContentRowHeight(30) //内容的行高
public class ExcelData {
    @ExcelProperty("ID")
    private String id;

    @ExcelProperty("用户名")
    @ColumnWidth(20)
    private String name;

    @ExcelProperty("邮箱")
    @ColumnWidth(20)
    private String email;

    @ExcelProperty("性别")
    private String gender;

    @ExcelProperty("积分")
    private Integer score;

    @ExcelProperty("IP")
    @ColumnWidth(20)
    private String ip;

    @ExcelProperty("登入次数")
    @ColumnWidth(20)
    private Integer count;

    @ExcelProperty("加入时间")
    @ColumnWidth(20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

}
